.class public abstract Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController;
.super Ljava/lang/Object;
.source "OrmmaController.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$ReflectedParcelable;,
        Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Properties;,
        Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;,
        Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$PlayerProperties;
    }
.end annotation


# static fields
.field private static final BOOLEAN_TYPE:Ljava/lang/String; = "boolean"

.field private static final EXIT:Ljava/lang/String; = "exit"

.field private static final FLOAT_TYPE:Ljava/lang/String; = "float"

.field private static final FULL_SCREEN:Ljava/lang/String; = "fullscreen"

.field private static final INT_TYPE:Ljava/lang/String; = "int"

.field private static final LOG:Lcom/burstly/lib/util/LoggerExt; = null

.field private static final NAVIGATION_TYPE:Ljava/lang/String; = "class com.ormma.NavigationStringEnum"

.field private static final STRING_TYPE:Ljava/lang/String; = "class java.lang.String"

.field private static final STYLE_NORMAL:Ljava/lang/String; = "normal"

.field private static final TAG:Ljava/lang/String; = "OrmmaController"

.field private static final TRANSITION_TYPE:Ljava/lang/String; = "class com.ormma.TransitionStringEnum"


# instance fields
.field protected mContext:Landroid/content/Context;

.field protected mOrmmaView:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 34
    invoke-static {}, Lcom/burstly/lib/util/LoggerExt;->getInstance()Lcom/burstly/lib/util/LoggerExt;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController;->LOG:Lcom/burstly/lib/util/LoggerExt;

    return-void
.end method

.method public constructor <init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;Landroid/content/Context;)V
    .locals 0
    .parameter "adView"
    .parameter "context"

    .prologue
    .line 418
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 419
    iput-object p1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController;->mOrmmaView:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;

    .line 420
    iput-object p2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController;->mContext:Landroid/content/Context;

    .line 421
    return-void
.end method

.method static synthetic access$000()Lcom/burstly/lib/util/LoggerExt;
    .locals 1

    .prologue
    .line 29
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController;->LOG:Lcom/burstly/lib/util/LoggerExt;

    return-object v0
.end method

.method protected static getFromJSON(Lorg/json/JSONObject;Ljava/lang/Class;)Ljava/lang/Object;
    .locals 18
    .parameter "json"
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lorg/json/JSONObject;",
            "Ljava/lang/Class",
            "<*>;)",
            "Ljava/lang/Object;"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/IllegalAccessException;,
            Ljava/lang/InstantiationException;,
            Ljava/lang/NumberFormatException;,
            Ljava/lang/NullPointerException;
        }
    .end annotation

    .prologue
    .line 436
    .local p1, c:Ljava/lang/Class;,"Ljava/lang/Class<*>;"
    const/4 v3, 0x0

    .line 437
    .local v3, fields:[Ljava/lang/reflect/Field;
    invoke-virtual/range {p1 .. p1}, Ljava/lang/Class;->getDeclaredFields()[Ljava/lang/reflect/Field;

    move-result-object v3

    .line 438
    invoke-virtual/range {p1 .. p1}, Ljava/lang/Class;->newInstance()Ljava/lang/Object;

    move-result-object v8

    .line 440
    .local v8, obj:Ljava/lang/Object;
    const/4 v4, 0x0

    .local v4, i:I
    :goto_0
    array-length v12, v3

    if-ge v4, v12, :cond_8

    .line 441
    aget-object v2, v3, v4

    .line 442
    .local v2, field:Ljava/lang/reflect/Field;
    invoke-virtual {v2}, Ljava/lang/reflect/Field;->getName()Ljava/lang/String;

    move-result-object v7

    .line 443
    .local v7, name:Ljava/lang/String;
    const/16 v12, 0x5f

    const/16 v13, 0x2d

    invoke-virtual {v7, v12, v13}, Ljava/lang/String;->replace(CC)Ljava/lang/String;

    move-result-object v6

    .line 444
    .local v6, jsonName:Ljava/lang/String;
    invoke-virtual {v2}, Ljava/lang/reflect/Field;->getType()Ljava/lang/Class;

    move-result-object v9

    .line 445
    .local v9, type:Ljava/lang/reflect/Type;
    invoke-virtual {v9}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v10

    .line 447
    .local v10, typeStr:Ljava/lang/String;
    :try_start_0
    const-string v12, "int"

    invoke-virtual {v10, v12}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v12

    if-eqz v12, :cond_3

    .line 448
    move-object/from16 v0, p0

    invoke-virtual {v0, v6}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v12}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v11

    .line 449
    .local v11, value:Ljava/lang/String;
    const/4 v5, 0x0

    .line 450
    .local v5, iVal:I
    const-string v12, "#"

    invoke-virtual {v11, v12}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_1

    move-result v12

    if-eqz v12, :cond_2

    .line 451
    const/4 v5, -0x1

    .line 453
    :try_start_1
    const-string v12, "#0x"

    invoke-virtual {v11, v12}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v12

    if-eqz v12, :cond_1

    .line 454
    const/4 v12, 0x1

    invoke-virtual {v11, v12}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v12

    invoke-static {v12}, Ljava/lang/Integer;->decode(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v12

    invoke-virtual {v12}, Ljava/lang/Integer;->intValue()I
    :try_end_1
    .catch Ljava/lang/NumberFormatException; {:try_start_1 .. :try_end_1} :catch_0
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_1

    move-result v5

    .line 465
    :goto_1
    :try_start_2
    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v12

    invoke-virtual {v2, v8, v12}, Ljava/lang/reflect/Field;->set(Ljava/lang/Object;Ljava/lang/Object;)V
    :try_end_2
    .catch Lorg/json/JSONException; {:try_start_2 .. :try_end_2} :catch_1

    .line 440
    .end local v5           #iVal:I
    .end local v11           #value:Ljava/lang/String;
    :cond_0
    :goto_2
    add-int/lit8 v4, v4, 0x1

    goto :goto_0

    .line 456
    .restart local v5       #iVal:I
    .restart local v11       #value:Ljava/lang/String;
    :cond_1
    const/4 v12, 0x1

    :try_start_3
    invoke-virtual {v11, v12}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v12

    const/16 v13, 0x10

    invoke-static {v12, v13}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;I)I
    :try_end_3
    .catch Ljava/lang/NumberFormatException; {:try_start_3 .. :try_end_3} :catch_0
    .catch Lorg/json/JSONException; {:try_start_3 .. :try_end_3} :catch_1

    move-result v5

    goto :goto_1

    .line 459
    :catch_0
    move-exception v1

    .line 460
    .local v1, e:Ljava/lang/NumberFormatException;
    :try_start_4
    sget-object v12, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v13, "OrmmaController"

    invoke-virtual {v12, v13, v1}, Lcom/burstly/lib/util/LoggerExt;->logThrowable(Ljava/lang/String;Ljava/lang/Throwable;)V
    :try_end_4
    .catch Lorg/json/JSONException; {:try_start_4 .. :try_end_4} :catch_1

    goto :goto_1

    .line 483
    .end local v1           #e:Ljava/lang/NumberFormatException;
    .end local v5           #iVal:I
    .end local v11           #value:Ljava/lang/String;
    :catch_1
    move-exception v1

    .line 484
    .local v1, e:Lorg/json/JSONException;
    sget-object v12, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v13, "OrmmaController"

    const-string v14, "No property in params: {0}"

    const/4 v15, 0x1

    new-array v15, v15, [Ljava/lang/Object;

    const/16 v16, 0x0

    invoke-virtual {v1}, Lorg/json/JSONException;->getMessage()Ljava/lang/String;

    move-result-object v17

    aput-object v17, v15, v16

    invoke-virtual {v12, v13, v14, v15}, Lcom/burstly/lib/util/LoggerExt;->logInfo(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    goto :goto_2

    .line 463
    .end local v1           #e:Lorg/json/JSONException;
    .restart local v5       #iVal:I
    .restart local v11       #value:Ljava/lang/String;
    :cond_2
    :try_start_5
    invoke-static {v11}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v5

    goto :goto_1

    .line 466
    .end local v5           #iVal:I
    .end local v11           #value:Ljava/lang/String;
    :cond_3
    const-string v12, "class java.lang.String"

    invoke-virtual {v10, v12}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v12

    if-eqz v12, :cond_4

    .line 467
    move-object/from16 v0, p0

    invoke-virtual {v0, v6}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    .line 468
    .restart local v11       #value:Ljava/lang/String;
    invoke-virtual {v2, v8, v11}, Ljava/lang/reflect/Field;->set(Ljava/lang/Object;Ljava/lang/Object;)V

    goto :goto_2

    .line 469
    .end local v11           #value:Ljava/lang/String;
    :cond_4
    const-string v12, "boolean"

    invoke-virtual {v10, v12}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v12

    if-eqz v12, :cond_5

    .line 470
    move-object/from16 v0, p0

    invoke-virtual {v0, v6}, Lorg/json/JSONObject;->getBoolean(Ljava/lang/String;)Z

    move-result v11

    .line 471
    .local v11, value:Z
    invoke-static {v11}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v12

    invoke-virtual {v2, v8, v12}, Ljava/lang/reflect/Field;->set(Ljava/lang/Object;Ljava/lang/Object;)V

    goto :goto_2

    .line 472
    .end local v11           #value:Z
    :cond_5
    const-string v12, "float"

    invoke-virtual {v10, v12}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v12

    if-eqz v12, :cond_6

    .line 473
    move-object/from16 v0, p0

    invoke-virtual {v0, v6}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    invoke-static {v12}, Ljava/lang/Float;->parseFloat(Ljava/lang/String;)F

    move-result v11

    .line 474
    .local v11, value:F
    invoke-static {v11}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v12

    invoke-virtual {v2, v8, v12}, Ljava/lang/reflect/Field;->set(Ljava/lang/Object;Ljava/lang/Object;)V

    goto :goto_2

    .line 475
    .end local v11           #value:F
    :cond_6
    const-string v12, "class com.ormma.NavigationStringEnum"

    invoke-virtual {v10, v12}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v12

    if-eqz v12, :cond_7

    .line 476
    move-object/from16 v0, p0

    invoke-virtual {v0, v6}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    invoke-static {v12}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/NavigationStringEnum;->fromString(Ljava/lang/String;)Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/NavigationStringEnum;

    move-result-object v11

    .line 477
    .local v11, value:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/NavigationStringEnum;
    invoke-virtual {v2, v8, v11}, Ljava/lang/reflect/Field;->set(Ljava/lang/Object;Ljava/lang/Object;)V

    goto/16 :goto_2

    .line 478
    .end local v11           #value:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/NavigationStringEnum;
    :cond_7
    const-string v12, "class com.ormma.TransitionStringEnum"

    invoke-virtual {v10, v12}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v12

    if-eqz v12, :cond_0

    .line 479
    move-object/from16 v0, p0

    invoke-virtual {v0, v6}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    invoke-static {v12}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/TransitionStringEnum;->fromString(Ljava/lang/String;)Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/TransitionStringEnum;

    move-result-object v11

    .line 480
    .local v11, value:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/TransitionStringEnum;
    invoke-virtual {v2, v8, v11}, Ljava/lang/reflect/Field;->set(Ljava/lang/Object;Ljava/lang/Object;)V
    :try_end_5
    .catch Lorg/json/JSONException; {:try_start_5 .. :try_end_5} :catch_1

    goto/16 :goto_2

    .line 487
    .end local v2           #field:Ljava/lang/reflect/Field;
    .end local v6           #jsonName:Ljava/lang/String;
    .end local v7           #name:Ljava/lang/String;
    .end local v9           #type:Ljava/lang/reflect/Type;
    .end local v10           #typeStr:Ljava/lang/String;
    .end local v11           #value:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/TransitionStringEnum;
    :cond_8
    return-object v8
.end method


# virtual methods
.method public abstract stopAllListeners()V
.end method
